import time
from functools import wraps


def cal_time(func):
    def wrapper(*age, **kwargs):
        t1 = time.time()
        result = func(*age, **kwargs)
        t2 = time.time()
        print("%s 运行时长： %s 秒。" % (func.__name__, t2 - t1))
        return result

    return wrapper


"""
装饰器函数
"""
